#pragma once
#include "gl.hh"
#include "../lib/glfw.hh"

namespace ngintoy
{
    namespace platform
    {
        struct glfw final : gl
        {
            glfw(config &);
            ~glfw() override;

            bool poll() override;
            double now() override;

            void make_context(int major_ver, int minor_ver) override;

        private:
            GLFWwindow* win{};
        };
    }
}

